package cn.cnsy123.shorturls.business.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import cn.cnsy123.shorturls.business.entity.ShortAddressService;
@Mapper
public interface ShortAddressServiceMapper {
    int deleteByPrimaryKey(Long dataId);

    int insert(ShortAddressService record);

    int insertSelective(ShortAddressService record);

    ShortAddressService selectByPrimaryKey(Long dataId);

    int updateByPrimaryKeySelective(ShortAddressService record);

    int updateByPrimaryKey(ShortAddressService record);

    List<ShortAddressService> selectShortUrlListByPageHelper(
            @Param("dataName") String dataName, @Param("sysType") String sysType,
            @Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);

    ShortAddressService selectByShortUrl(@Param("shortUrl") String shortUrl);
}